Repository navigation
feat(headless): 用 Docker 运行基础 Web 文字聊天 / run basic web text chat in docker - #87
Draft
Facetomyself wants to merge 7 commits into
Draft
Facetomyself wants to merge 7 commits into
Facetomyself wants to merge 7 commits into
Conversation
added 6 commits
November 27, 2026 10:51
…pter in text mode
… conversations with cancellation
…wire a basic chat interface
…restored conversations
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联 #67。本草稿现在可以试用基础文字聊天。最初的存储提交
e8707f8保持原样,后续提交依次接入模型适配、无 GUI 服务、网页和 Docker;无需合并其他实验分支。试用一条完整流程:Compose 快速开始与配置。指定一个 OpenAI Chat Completions 兼容模型和独立的 Web 登录令牌,执行
docker compose up --build -d --wait,打开http://127.0.0.1:8787→ 登录 → 新建对话 → 发送、查看流式回复或停止 → 重建服务并重新登录后继续原对话。建议评审顺序
e8707f8:桌面配置 IPC 和存储分开,普通 Node 可以使用已有的DEVA_HOME和原生会话格式。桌面仍沿用原路径、凭据和网络栈。4d34569/cd10529:复用原 OpenAI 流式适配器。部署者固定模型和地址,仅处理文字。登录使用 HttpOnly Cookie,写操作核对 Origin;专用卷单写,过时的会话版本不会重复发送。c754811:浏览器使用桌面样式和同一个发送/停止组件。17de729/dbbaa25:Node 22 非 root 镜像、默认仅回环发布、健康检查、命名卷和端到端回归。验证
pnpm typecheck及原桌面 / 移动网页生产构建通过。docker compose config已通过;两阶段 Compose 探针已在两个独立的本地 Node 进程验证。此提交的原生 amd64 Docker CI目前为action_required,尚未启动作业;不把上述进程测试当作镜像构建或容器重建通过。已验证的浏览器界面(合成对话)
后续设计与希望上游确认的方向
沿 #67 讨论的 B 路线,我们的建议是:把 headless 当作 Deva 的另一种运行方式,而非另做一套产品。网页尽量复用桌面 React 组件;会话格式、模型适配逻辑也尽量共用。Node 宿主负责登录、模型凭据和数据卷。复用格式不等于让两个进程同时写同一份桌面数据。
希望维护者优先定两个方向:(1)headless 长期定位是轻量聊天服务,还是逐步接近桌面工作台?(2)是否保留本稿的小型同源 HTTP 接口,还是希望后续优先对齐现有 Web 通道的配对或消息协议?两种选择都保留“服务器独立运行,无需常驻桌面进程”这个目标。后续范围和顺序以评审意见为准,本 PR 不关闭整项 #67。